Skip to content

Conversation

@jsarha
Copy link
Contributor

@jsarha jsarha commented Nov 19, 2025

Use module API mod_zalloc() for memory allocation and mod_data_blob_handler_new() for blob handler allocation and corresponding module API functions for freeing them.

Use module API mod_zalloc() for memory allocation and
mod_data_blob_handler_new() for blob handler allocation and
corresponding module API functions for freeing them.

Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
Copilot AI review requested due to automatic review settings November 19, 2025 15:07
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the smart_amp_test_ipc4 module to use the module API for all memory allocations and deallocations, replacing legacy memory management functions with their module-aware equivalents.

  • Replaces rzalloc() with mod_zalloc() for struct allocation
  • Replaces comp_data_blob_handler_new() with mod_data_blob_handler_new() for blob handler creation
  • Replaces corresponding free functions with their module API equivalents

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@softwarecki softwarecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see a new function mod_zalloc :)

@lgirdwood
Copy link
Member

@lrudyX good to merge, not sure if this test is run on internal CI ?

@lrudyX
Copy link

lrudyX commented Dec 1, 2025

@lrudyX good to merge, not sure if this test is run on internal CI ?

No, it is not run. Only set and get are validated with CI

@kv2019i kv2019i merged commit 6cb32cd into thesofproject:main Dec 1, 2025
36 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants